<?php
/*    This file is part of ipmanage.

    ipmanage is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    ipmanage is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with ipmanage.  If not, see <http://www.gnu.org/licenses/>.
*/

//displaysubnet.php

require_once ("page-builder.php");
get_header("Subnets");
?>
<p>
<table>
<tr>
<th>Subnet ID</th>
<th>Subnet Mask</th>
<th>Scan Interval</th>
</tr>
<?php
db_buildsubnettable();
/*foreach ( $result as $row) {
	$row[0];?><tr><td><?php
	$vars = array ('mode' => 'shownet', 'NetID' => $row[0]);
	$url = make_get_url($_SERVER['PHP_SELF'],$vars);?>
	<a href="<?php print $url .'">'.$row[0]?></a>
<?php
foreach ($row as $col){
	print ("<td>" . $col . "</td>");
	}
	print "</tr>";
	}
*/?></table></p>

<?php
include ("add-subnet.php");
get_sidebar();
get_footer();
?>